package net.boot;

import cn.hutool.core.net.NetUtil;
import cn.hutool.extra.spring.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author qiusu
 * @since  2025/08/18
 */
@SpringBootApplication
public class SmppApplication {

    public static void main(String[] args) {
        SpringApplication.run(SmppApplication.class, args);

        // 构造完整服务地址
        String serviceUrl = "http://" + NetUtil.getLocalhostStr() + ":" + SpringUtil.getProperty("server.port")+"/"+SpringUtil.getApplicationName();
        System.out.println("当前服务状态: " + serviceUrl+"/thread-status");
    }
}